<?php

//屏蔽错误
error_reporting( 0 );
//引入操作类
require_once '../inc/medoo.php';
//引入数据库
require_once '../inc/conn.php';
//引入配置
require_once '../inc/config.php';
//查询
//$datas = $database->select(dbtable0, "*" );

// 获取数据
//$z000=$_POST['y000']; //数据库自序号
$z001=$showtime=date("Y-m-d H:i:s"); //创建日期时间
$z002=$showtime=date("Y-m-d H:i:s"); //变更日期时间
$z003="回复1";
$z004="回复2";

$z100=$_POST['y100'];
$z101=$_POST['y101'];
$z102=$_POST['y102'];
$z103=$_POST['y103'];
$z104=$_POST['y104'];
$z105=$_POST['y105'];
$z106=$_POST['y106'];
$z107=$_POST['y107'];
$z108=$_POST['y108'];
$z109=$_POST['y109'];

// 插入数据
$database->insert(dbtable0, [ //<!-- +++++++++++++++修改+++++++++++++++ -->
	//'w000' => $z000, //数据库自序号
	'w001' => $z001,
	'w002' => $z002,
	'w003' => $z003,
	'w004' => $z004,

    'w100' => $z100, //可编号
    'w101' => $z101,
	'w102' => $z102,
	'w103' => $z103,
	'w104' => $z104,
	'w105' => $z105,
	'w106' => $z106,
	'w107' => $z107,
	'w108' => $z108,
	'w109' => $z109,
]);

?>

<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php  echo sysname; ?> <?php echo version; ?> - Powered by Y.Z.W</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../inc/layui/css/layui.css" media="all">
</head>

<body>
<?php include("../inc/head.php"); ?>

<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
  <legend><a href="admin.php">添加完成，点击返回</a></legend>
</fieldset>

<?php include("../inc/foot.php"); ?>

</body>
</html>